﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Urb.Weather.Core;
using Urb.Weather.Core.MeasureUnit;

namespace Urb.Weather.Yahoo
{
    public class YahooWeatherData
    {
        public DateTimeOffset? LastBuildDate { get; set; }

        public string LocationCity { get; set; }
        public string LocationRegion { get; set; }
        public string LocationCountry { get; set; }

        public TemperatureUnit? TemperatureUnit { get; set; }
        public DistanceUnit? DistanceUnit { get; set; }
        public PressureUnit? PressureUnit { get; set; }
        public SpeedUnit? SpeedUnit { get; set; }

        public short? WindChill { get; set; }
        public short? WindDirection { get; set; }
        public decimal? WindSpeed { get; set; }

        public byte? Humidity { get; set; }
        public decimal? Visibility { get; set; }
        public decimal? Pressure { get; set; }
        public byte? PressureRising { get; set; }

        public string Sunrise { get; set; }
        public string Sunset { get; set; }

        public decimal? Longitude { get; set; }
        public decimal? Latitude { get; set; }

        public string ConditionsDescription { get; set; }
        public YahooWeatherConditionCode? ConditionsCode { get; set; }
        public short? Temperature { get; set; }
        public DateTimeOffset? Date { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public ICollection<YahooWeatherForecastData> Forecasts { get; set; }

        public string SourceXml { get; set; }
    }
}
